package com.pmcc.cj.repository;

import com.pmcc.cj.entity.CjCustomer;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by tomas on 2020/9/21.
 */
public interface CjCustomerRepository extends JpaRepository<CjCustomer,String> {
    CjCustomer findByAndWechatId(String wechatId);
    CjCustomer findByUserName(String username);
    List<CjCustomer> findByCountyAndIsDriverAuthAndRobotFlagAndIntegralNotNullOrderByIntegralDesc(String county,boolean isDriverAuth,int robotFlag);
    List<CjCustomer> findByProxyAndDelFlag(int proxy,int delFlag);//查找所有种地大户的数据
}
